package com.sc.nft.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sc.nft.entity.ReportOverview;
import com.sc.nft.entity.vo.ReportOverviewVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 后台报表总览(ReportOverview)表数据库访问层
 *
 * @author wwc
 * @since 2023-04-13 14:43:36
 */
public interface ReportOverviewMapper extends BaseMapper<ReportOverview> {

    /**
     * 根据天数和类型获取对应多少天前的数据
     *
     * @param day
     * @param codes
     * @return
     */
    List<ReportOverviewVO> obtainTheDataOfThePreviousDaysBasedOnTheDaysAndTypes(@Param("day") Integer day, @Param("codes") List<Integer> codes);

}
